Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
12 lines (8 loc) · 355 Bytes

12.1.11 - swoole_client->sendto.md

File metadata and controls

12 lines (8 loc) · 355 Bytes

swoole_client->sendto

向任意IP:PORT的主机发送UDP数据包,仅支持SWOOLE_SOCK_UDP/SWOOLE_SOCK_UDP6类型的swoole_client对象。

bool swoole_client->sendto(string $ip, int $port, string $data);
  • $ip,目标主机的IP地址,支持IPv4/IPv6
  • $port,目标主机端口
  • $data,要发送的数据内容,不得超过64K